package com.veryUsedCar.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@TableName("fc_user")
@Data //equals hashcode tostring get set 方法
@Accessors(chain = true)
//fluent = true 用的少 别的地方使用get set 方法可以省略get set
//chain = true 调用set方法时可以连续set
@Builder //构建器 将构造器私有化，通过内部类的方式创建对象，安全，逼格高
@NoArgsConstructor //无参构造
@AllArgsConstructor //有参构造
public class User {
    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;

    @TableField(value = "uname")
    private String uname;

    @TableField(value = "password")
    private String password;

    @TableField
    private String uphone;

    @TableField
    private String salt;

    @TableField
    private String access;

    @TableField
    private String spare1;

    @TableField
    private String spare2;
}
